package org.jsbd.boss.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.dao.IFlowStatisticsDAO;
import org.jsbd.boss.domian.channel.FlowVo;
import org.springframework.stereotype.Repository;

@Repository("flowStatisticsDAO")
public class FlowStatisticsDAOImpl extends CrackStatisticsBaseDao implements IFlowStatisticsDAO {

	@Override
	public Map<String, Object> selectListGridJson(DataGridModel page, FlowVo flowVo) {
		flowVo = (flowVo == null ? new FlowVo() : flowVo);
		flowVo.setPageInfo(page);
	    Map<String, Object> results = new HashMap<String, Object>();
	    results.put("rows", super.queryForList("qy_flow_statistics.SELECT_LIST_GRID", flowVo));
	    results.put("total", super.queryForCount("qy_flow_statistics.SELECT_COUNT_GRID", flowVo));
	    return results;
	}

}
